package com.pushway.demo.pojo;

import io.prometheus.client.Collector;
import lombok.Data;

/**
 * @author chentiefeng
 */
@Data
public abstract class PushItem {
    /**
     * 监控的instance
     */
    private String instance;
    /**
     * 监控的job
     */
    private String job;

    protected PushItem(String instance, String job) {
        this.instance = instance;
        this.job = job;
    }

    /**
     * 监控的metric
     * @return
     */
    public abstract Collector getCollector();
}
